/*
 * @Author: guandeshen 295570679@qq.com
 * @Date: 2024-08-20 11:05:08
 * @LastEditors: guandeshen 295570679@qq.com
 * @LastEditTime: 2024-09-18 09:40:25
 * @FilePath: /task-admin/src/api/user/model.ts
 * @Description:
 *
 * Copyright (c) 2024 by RSC, All Rights Reserved.
 */
/**
 * 列表
 */
export interface UserList {
  id: string;
  group_id?: string;
  group_name?: string;
  username?: string;
  nickname?: string;
  gender?: number;
  type_of_work?: string;
  mobile?: string;
  birthday?: string;
  daily_wage?: string;
  status?: string;
  createtime?: number;
  url?: string;
  loading?: boolean;
  rule_type?: string;
}

/**
 * 查询对象类型
 */
export interface UserQuery extends PageQuery {
  keyword?: string;
  status?: string;
}

/**
 * 表单对象类型
 */
export interface UserForm {
  id?: string;
  group_id?: string;
  group_name?: string;
  username?: string;
  nickname?: string;
  gender?: number;
  job_no?: string;
  type_of_work?: string;
  mobile?: string;
  birthday?: string;
  daily_wage?: string;
  status?: string;
  createtime?: number;
  url?: string;
  password?: string;
  rule_type?: string;
}

export interface UserPwdQuery {
  user_id: string;
  password: string;
}

export interface UserStatusQuery {
  user_id: string;
  status: string;
}

export interface UserChgpwdQuery {
  old_pwd: string;
  new_pwd: string;
  new_pwd_conf: string;
}

/**
 * 登录用户信息
 */
export interface UserInfo {
  userId?: number;
  username?: string;
  nickname?: string;
  mobile?: string;
  gender?: number;
  avatar?: string;
  email?: string;
  job_no?: string;
  group_name?: string;
  department?: string;
  type_of_work?: string;
  roles: string[];
  perms?: string[];
  menus?: string[];
  rule_type?: string;
}

export interface TenantList {
  id: string;
  group_id?: string;
  group_ref?: string;
  group_name?: string;
  username?: string;
  nickname?: string;
  job_no?: string;
  gender?: number; //1=男，0=女
  type_of_work?: string;
  mobile?: string;
  birthday?: string;
  daily_wage?: string;
  status?: string; //normal=正常，hidden=隐藏
  createtime?: number;
  url?: string;
  rule_type?: string;
}

export interface chgUserInfoForm {
  nickname?: string;
  avatar?: string;
  mobile?: string;
  gender?: number; //男=1，女=0
  email?: string;
  job_no?: string;
  department?: string;
  roles?: string;
}
